/*
 * head.h
 *
 *  Created on: 2012-11-16
 *      Author: kidlet
 */

#ifndef HEAD_H_
#define HEAD_H_

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <mysql/mysql.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
#include <ctime>
#include <sys/wait.h>

using namespace std;

int Intial ();
int ReadParameter ( const char *pName , char *result);
int WriteLog ( const char *fName, const char *data );
const char*  GetDateTime ( const char* format );
int Intial_MySQL ();
void Call_Exit ( int signal );
void Child_Exit ( int signal );
void Run_Judger ();
int GetJobs ();
#endif /* HEAD_H_ */
